package mk.jug.academy.testing.factory;

import java.util.UUID;

import mk.jug.academy.model.Lecturer;
import mk.jug.academy.model.Student;
import mk.jug.academy.model.StudentReview;
import mk.jug.academy.model.StudentReviewStatus;


/**
 * Factory for creating {@link StudentReview} test instances.
 *
 * @author Ice.Penov
 */
public class StudentReviewTestFactory {
	
	/** No instantiation. Static usage only */
	private StudentReviewTestFactory() {;}
	
	/** Creates a random {@link StudentReview} instance, for testing purposes */	
	public static StudentReview createStudentReview() {
		StudentReview review = new StudentReview();
		review.setReview("review" + UUID.randomUUID());
		review.setStatus(StudentReviewStatus.BEING_DEFINED);
		return review;
	}
	
	/** Creates a random {@link StudentReview} instance, for testing purposes */	
	public static StudentReview createStudentReview(Lecturer lecturer, Student student) {
		StudentReview review = createStudentReview();
		review.setLecturerID(lecturer.getId());
		review.setStudentID(student.getId());
		return review;
	}

}